from django.urls import include, path, re_path
import xadmin

urlpatterns = [
    # path('admin/', admin.site.urls),
    path('admin/', xadmin.site.urls),
    path('tinymce/',include('tinymce.urls')),
    path('search/', include('haystack.urls')), # 全文检索框架
    path('user/',include(('user.urls','user'),namespace='user')),
    path('cart/',include(('cart.urls','cart'),namespace='cart')),
    path('order/',include(('order.urls','order'),namespace='order')),
    # 首页写在最后，要不然你无论输入什么就直接匹配成功进入goods.urls搜索
    path('',include(('goods.urls','goods'),namespace='goods')),
]
